Police issue apology, High Court dismisses case after officers are photographed with suspect